object Fibonacci {
	def main( ) : Unit = {
		println( new Fibo( ) . computeFibonacci ( 10 ) ) ;
	}
}

class Fibo {
	def computeFibonacci ( num : Int ) : Int = {
		
		var num_aux : Int ;
		
		var num_1 : Int ;
		var num_2 : Int ;
		num_1 = 0;
		num_2 = 0;
		
		if ( num < 2 ) {
			if ( num == 1 )
				num_aux = 1 ;
			else
				num_aux = 0 ;
		} else {
			
			num_1 = ( this . computeFibonacci ( num - 1 ) ) ;
			num_2 = ( this . computeFibonacci ( num - 2 ) ) ;
			
			num_aux = ( num_1  + num_2 ) ;
		}
		return num_aux;
	}
}
